//
//  MBOrderPayViewController.m
//  MemberBusiness-ios
//
//  Created by 掌心 on 2018/6/1.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import "MBOrderPayViewController.h"
#import "MBOrderPayTableViewCell.h"
#import "MBOrderPayFooterView.h"

@interface MBOrderPayViewController ()

@end

@implementation MBOrderPayViewController
@dynamic viewModel;

- (void)viewDidLoad {
    [super viewDidLoad];
  
    [self setupLayout];
}

-(void)setupLayout
{
    [super setupLayout];
    
    self.naviView.titleLabel.text = @"订单核销";
    [self.naviView setUpBackButton];
    
    @weakify(self);
    [[self.naviView.backButton rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self);
        [self.navigationController popViewControllerAnimated:YES];
    }];
    
    self.tableView.backgroundColor = COLOR_BG;
    MBOrderPayFooterView* footerView = [[MBOrderPayFooterView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, [UIView lf_sizeFromIphone6:450])];
    self.tableView.tableFooterView = footerView;
    
    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(44+SCREEN_STATUS_BAR_HEIGHT);
        make.left.right.bottom.equalTo(self.view);
    }];
}

-(Class)cellClassForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return [MBOrderPayTableViewCell class];
}

@end
